package com.sofwin.service.impl;

import com.sofwin.mapper.SysDeptMapper;
import com.sofwin.pojo.SysDept;
import com.sofwin.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private SysDeptMapper mapper;
    @Override
    public List<SysDept> selectAllDepts() {
        return mapper.selectByExample(null);
    }
}
